Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE #5271 - Ticket filters: jobsandusers select filter form #5391

Merged
merged 36 commits into from
Mar 7, 2025

Conversation

The-Daniel
Copy link
Contributor

This fixes #5271

Description

Adds the jobs and users circles input for when a value is solely jobs and users
If the property has jobsAndUsers and in addition to other values then the usual select will display.
Users will always be shown as their full name - not their username.
The owner property uses the jobs and users circle select

Test cases

Test out the 'Owner property'
Create templates that have a shared property path (module, property, and type are the same) but with different values one of which is jobs and Users

@The-Daniel The-Daniel changed the title Ticket filters: jobsandusers select filter form ISSUE #5271 - Ticket filters: jobsandusers select filter form Feb 5, 2025
@The-Daniel The-Daniel requested a review from Amantini1997 March 3, 2025 13:46
/>
<FormHelperText>{helperText}</FormHelperText>
</FormControl>
export const MultiSelect = ({ defaultValue = [], className, ...props }: SelectProps) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In src\v5\ui\routes\viewer\tickets\ticketsForm\properties\manyOfProperty.component.tsx this component is being used.
manyOfProperty shows a different component depending on the values prop . These components are all FormInputs and the change here changes that.
maybe you should change that reference to FormMultiSelect to keep the same logic?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the code a little bit more and its using src\v5\ui\controls\searchSelect\searchSelect.component.tsx which uses src\v5\ui\controls\inputs\select\select.component.tsx which in turn uses formcontrol.

Created an issue #5448 to address this, so this comment dont need to be addressed.

@The-Daniel The-Daniel requested a review from Amantini1997 March 5, 2025 12:14
@The-Daniel The-Daniel requested a review from Amantini1997 March 5, 2025 16:04
@Amantini1997 Amantini1997 merged commit bcfe3c9 into ISSUE_5188 Mar 7, 2025
12 checks passed
@Amantini1997 Amantini1997 deleted the ISSUE_5271 branch March 7, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants